package com.etcn.common.utils;

/**
 * 用户工具类
 */
public class UserUtil {

    private static ThreadLocal<String> local = new ThreadLocal<String>();   
    
    public static void set(String memberId) {    
        local.set(memberId);    
    }    
    /** 
     * 获取当前会员id
     * @return 
     */  
    public static String getCurrentMemberId() {    
        return local.get();    
    }    
    
    public static void remove(){  
        local.remove();  
    }  
}
